package ooDay02;

public class Student extends Person {
    String className;
    int classId;
    Student(){

    }
    Student(String name,int age,String address,String className,int classId){
        super(name,age,address);
        this.classId = classId;
        this.className = className;

    }
    void sayHi(){
        System.out.println("大家好,我是"+name+"今年"+age+"岁了,"+"家住"+address+",所在班级是"+className+",班级id为"+classId);
    }
    void study(){
        System.out.println("正在学习");
    }
}
